home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / icndos15.zip / RUN.BAT < prev    next >
DOS Batch File  |  1993-06-03  |  3KB  |  110 lines

  1. @echo off
  2. if %1!==! goto uhoh
  3. REM                       *** IconDOS - DEMO MENU ***
  4. REM
  5. REM This batch file illustrates how easy it is to set up a single batch file
  6. REM to handle any number of IconDOS menu icons.  Each icon in the demo
  7. REM example menu (DEMO.MNU) has a command string which calls RUN.BAT and
  8. REM passes a single, unique parameter.  This parameter identifies the command
  9. REM set that is to be executed.  The 'goto %1' below simply transfers control
  10. REM to a labeled location which matches the parameter.  For example, the
  11. REM icon for dBase IV has the command string: 'RUN DB4'.  This command string
  12. REM calls this batch file (RUN.BAT) with the passed parameter, 'DB4'.  DOS
  13. REM replaces %1 by the first parameter found on the command line (DB4)
  14. REM which results in the following line reading 'goto DB4'.
  15.  
  16. goto %1
  17.  
  18. :123
  19.  
  20. REM To actually execute Lotus from this icon, replace the 'echo' line below
  21. REM with the commands to change to your Lotus directory and execute 123.
  22. REM These commands should look something like:
  23. REM       CD\LOTUS
  24. REM       123
  25. REM The same general method can be used to set up a command set for any of
  26. REM the labels/parameters listed below.
  27.  
  28. echo DEMO MENU - You selected Lotus 1-2-3
  29. goto done
  30.  
  31. :DB4
  32. echo DEMO MENU - You selected dBase IV
  33. goto done
  34.  
  35. :WS
  36. echo DEMO MENU - You selected WordStar
  37. goto done
  38.  
  39. :WP
  40. echo DEMO MENU - You selected WordPerfect
  41. goto done
  42.  
  43. :QUICKEN
  44. echo DEMO MENU - You selected Quicken
  45. goto done
  46.  
  47. :MOUSE
  48. echo DEMO MENU - You selected the Logitech Mouse Driver
  49. goto done
  50.  
  51. :COREL
  52. echo DEMO MENU - You selected Corel Draw
  53. goto done
  54.  
  55. :CALC
  56. echo DEMO MENU - You selected the Calculator
  57. goto done
  58.  
  59. :WINDO
  60. echo DEMO MENU - You selected MicroSoft Windows
  61. goto done
  62.  
  63. :PAINT
  64. echo DEMO MENU - You selected Paint
  65. goto done
  66.  
  67. :BJ
  68. echo DEMO MENU - You selected Black Jack
  69. goto done
  70.  
  71. :FLY
  72. echo DEMO MENU - You selected Flight Simulator
  73. goto done
  74.  
  75. REM *** Below are the options for the submenu, SUBDEMO.MNU ***
  76.  
  77. :NETWK
  78. echo DEMO SUB-MENU - You selected Network
  79. goto done
  80.  
  81. :NOTE
  82. echo DEMO SUB-MENU - You selected NotePad
  83. goto done
  84.  
  85. :CD
  86. echo DEMO SUB-MENU - You selected CD-ROM
  87. goto done
  88.  
  89. :uhoh
  90.  
  91. REM This message prints if no parameters were passed
  92.  
  93. echo This batch file requires IconDOS
  94. goto stop
  95.  
  96. :done
  97.  
  98. REM This is the clean up area which contains the commands needed to return
  99. REM control to IconDOS after running a command set.  For an actual menu, the
  100. REM 'echo' line below should be replaced with something like:
  101. REM     C:
  102. REM     CD\MENU
  103. REM Alternately, control can be returned to IconDOS by specifying the full
  104. REM drive and directory path location for IconDOS and menu files as follows:
  105. REM     C:\MENU\ICONDOS C:\MENU\DEMO
  106.  
  107. echo If this had been an actual menu, your software would be running now.
  108. ICONDOS DEMO
  109. :stop
  110.